Add secure defaults checklist and CI linting#10
Merged
Conversation
- Add SECURE_DEFAULTS.md with comprehensive security checklist covering: - PHP configuration best practices - Input validation patterns with php-aegis Validator - Output sanitization with php-aegis Sanitizer - HTTP security headers configuration - Authentication, database, file, and crypto guidelines - CI/CD and dependency management practices - Add phpstan.neon with maximum strictness (level 9) - Enable all strict type checks - Check for implicit mixed types - Report maybes in method signatures - Add .php-cs-fixer.dist.php with PSR-12 and security rules - Enforce strict_types declaration - Enable strict comparisons - Warn on eval() usage - Migrate to secure random functions - Add php-lint.yml CI workflow with comprehensive checks: - PHP syntax validation - PHP-CS-Fixer code style enforcement - PHPStan level 9 static analysis - SPDX license header verification - strict_types declaration check - Security pattern detection (dangerous functions, weak crypto) - Composer dependency audit - PHP 8.1-8.4 compatibility matrix - Update .gitignore for PHP tooling cache files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add SECURE_DEFAULTS.md with comprehensive security checklist covering:
Add phpstan.neon with maximum strictness (level 9)
Add .php-cs-fixer.dist.php with PSR-12 and security rules
Add php-lint.yml CI workflow with comprehensive checks:
Update .gitignore for PHP tooling cache files